package com.training1.common.controller;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.training1.core.common.enums.DropDownDto;
import com.training1.core.common.enums.EnumUtils;

@RestController
public class EnumController {

	@RequestMapping(value="enum",method=RequestMethod.GET)
	public List<DropDownDto> getEnum(String enumName,Boolean all){
		
		return EnumUtils.getEnums(enumName,all);
	}
	
}
